<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>将⼀个 Set 类型转换成 Array 类型</title>
</head>
<body>
    <script>
        const sak = new Set(['a','b','c']);// 创建一个Set伪数组对象
        var arr = Array.from(sak);// 使用Array.from()方法让Set伪数组转换为数组
        console.log(arr);// 输出arr变量
    </script>
</body>
</html>